package com.zhou.common.template.project.model.ao;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @description:
 * @author xianfeng
 * @date 2023/12/2 16:22
 */
@Data
public class UserAo {

    @NotEmpty(message = "{UserAo.username.notEmpty}")
    private String username;

    @NotNull(message = "{UserAo.age.notNull}")
    @Max(value = 200, message = "{UserAo.age.max}")
    @Min(value = 0, message = "{UserAo.age.min}")
    private Integer age;

    @NotEmpty(message = "{UserAo.address.notEmpty}")
    private String address;
}
